
<template>
  <div class="main">
    <div class="ov-title">
      <strong>数据概览</strong>
    </div>
    <el-row :gutter=20>
      <template v-for="(item,index) in overviewData">
      <el-col :span="8">
        <div class="gl-box">
          <el-image style="width: 65px;height: 65px" :src="item.logo"></el-image>
          <div>
            <strong :style="{color:colors[index]}">{{item.num}}</strong>
            <br>
            <small>{{item.title}}</small>
          </div>
        </div>
      </el-col>
      </template>
    </el-row>
    <br>
    <el-card shadow="never">
      <div class="ov-title">
        <strong>法人库统计</strong>
      </div>
      <div style="height: 300px">
        <library-statistics :tableData="basicsList" :colors="['#6895fe','#91ccfe']"></library-statistics>
      </div>
      <br>
      <div class="ov-title">
        <strong>要素库统计</strong>
      </div>
      <div style="height: 300px">
        <library-statistics :tableData="themeList" :colors="['#fea268','#ffcc90']"></library-statistics>
      </div>
    </el-card>

  </div>
</template>


<script setup>
import { overviewData,basicsList,themeList } from "../data/data.js"
import {reactive} from "vue";
import LibraryStatistics from "@/views/dataResourceCatalog/Echarts/LibraryStatistics.vue";

const colors = reactive([ '#5289f7','#f5b63c','#4ad5c9'])

</script>

<style scoped lang="scss">
.main{
  width: 1200px;
  height: 100vh;
  margin: 0 auto;
}

.ov-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e5e5e5;

  > strong {
    font-size: 16px;
    border-left: 4px solid #2368fa;
    padding-left: 10px;
  }
}

.gl-box{
  height: 150px;
  display: flex;
  justify-content: left;
  align-items: center;
  padding-left: 40px;
  box-sizing: border-box;
  background-color: #ffffff;
  >div{
    margin-left: 20px;
  }
  strong{
    font-size: 30px;
  }
  small{
    color: #999999;
  }
}

</style>
